package ncorps.output;

import java.awt.Frame;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JPanel;


public class ScreenOutPanel extends JPanel {

    private BufferedImage imgIn;

    ScreenOutPanel(String ficInStr){
        try {
            imgIn = ImageIO.read(new File(ficInStr));
        } catch (IOException ex) {
         
        }
    }

    @Override
    protected void paintComponent(Graphics g) {

        super.paintComponent(g);
        g.drawImage(imgIn, 10, 10, 960, 600, null);
    }

    void imagesuiv(String FicInStr) {
        try {
            imgIn = ImageIO.read(new File(FicInStr));
        } catch (IOException ex) {
        }
        repaint();
    }
}
